package com.pansoft.kline.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.util.Currency;
import java.util.Locale;

/**
 *
 * @autor yqs
 * @date 2018/11/21 15:04
 **/
@Entity
public class ConfigMarketBean {

    /**
     *  {
     "3": {
     "site": "bitstamp",
     "coin": "BTC",
     "currency": "USD",
     "show": {
     "ticker": 1,
     "dc": 1,
     "cs": 1
     },
     "type": "exchange",
     "future": "",
     "fee": ""
     }
     */

    @Id
    String marketId;
    String site;
    String coin;
    String ticker;
    String currency;
    String dc;
    String cs;
    String type;
    String future;
    String fee;
    @Generated(hash = 1499488427)
    public ConfigMarketBean(String marketId, String site, String coin,
            String ticker, String currency, String dc, String cs, String type,
            String future, String fee) {
        this.marketId = marketId;
        this.site = site;
        this.coin = coin;
        this.ticker = ticker;
        this.currency = currency;
        this.dc = dc;
        this.cs = cs;
        this.type = type;
        this.future = future;
        this.fee = fee;
    }
    @Generated(hash = 432620890)
    public ConfigMarketBean() {
    }
    public String getMarketId() {
        return this.marketId;
    }
    public void setMarketId(String marketId) {
        this.marketId = marketId;
    }
    public String getSite() {
        return this.site;
    }
    public void setSite(String site) {
        this.site = site;
    }
    public String getCoin() {
        return this.coin;
    }
    public void setCoin(String coin) {
        this.coin = coin;
    }
    public String getDc() {
        return this.dc;
    }
    public void setDc(String dc) {
        this.dc = dc;
    }
    public String getCs() {
        return this.cs;
    }
    public void setCs(String cs) {
        this.cs = cs;
    }
    public String getType() {
        return this.type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public String getFuture() {
        return this.future;
    }
    public void setFuture(String future) {
        this.future = future;
    }
    public String getFee() {
        return this.fee;
    }
    public void setFee(String fee) {
        this.fee = fee;
    }
    public String getTicker() {
        return this.ticker;
    }
    public void setTicker(String ticker) {
        this.ticker = ticker;
    }
    public String getCurrency() {
        return this.currency;
    }
    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public static void main(String[] args) {
        Currency currency = Currency.getInstance(Locale.US);

        System.out.println(currency.getCurrencyCode());
        System.out.println(currency.getDisplayName());
        System.out.println(currency.getDisplayName(Locale.CHINA));
        System.out.println(currency.getDisplayName(Locale.US));
        System.out.println(currency.getSymbol());
        System.out.println(currency.getSymbol());

        System.out.println("--------------");

        Currency currency1 = Currency.getInstance("JPY");
        System.out.println(currency1.getCurrencyCode());
        System.out.println(currency1.getDisplayName());
        System.out.println(currency1.getDisplayName(Locale.CHINA));
        System.out.println(currency1.getDisplayName(Locale.US));
        System.out.println(currency1.getSymbol());
        System.out.println(currency1.getSymbol(Locale.US));
        System.out.println(currency1.getSymbol(Locale.JAPAN));

        System.out.println("--------------");

        Currency currency2 = Currency.getInstance("JPY");
        System.out.println( currency2.getSymbol());
    }
}
